<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>双十二狂欢节 - 淘乐乐</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', sans-serif;
        }

        body {
            background-color: #f5f5f5;
        }

        /* 导航栏样式 */
        .main-nav {
            background: #ff3c3c;
            padding: 15px 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        .nav-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            color: #fff;
            font-size: 24px;
            font-weight: bold;
            text-decoration: none;
        }

        /* 主banner样式 */
        .main-banner {
            background: linear-gradient(45deg, #ff3c3c, #ff6666);
            color: white;
            padding: 50px 0;
            text-align: center;
        }

        .banner-content h1 {
            font-size: 48px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .banner-content p {
            font-size: 20px;
            margin-bottom: 10px;
        }

        /* 倒计时样式 */
        .countdown {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }

        .countdown-item {
            background: rgba(255,255,255,0.2);
            padding: 20px;
            border-radius: 10px;
            min-width: 100px;
        }

        .countdown-number {
            font-size: 36px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .countdown-label {
            font-size: 14px;
        }

        /* 活动区域样式 */
        .section {
            background: white;
            margin: 30px 0;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
        }

        .section-title {
            font-size: 24px;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #ff3c3c;
        }

        /* 商品网格样式 */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-top: 20px;
        }

        .product-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .product-card:hover {
            transform: translateY(-5px);
        }

        .product-image {
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .discount-tag {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #ff3c3c;
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-weight: bold;
        }

        .product-info {
            padding: 15px;
        }

        .product-title {
            font-size: 16px;
            margin-bottom: 10px;
        }

        .product-price {
            display: flex;
            align-items: baseline;
            gap: 10px;
        }

        .current-price {
            color: #ff3c3c;
            font-size: 20px;
            font-weight: bold;
        }

        .original-price {
            color: #999;
            text-decoration: line-through;
        }

        .buy-btn {
            width: 100%;
            padding: 10px;
            background: #ff3c3c;
            color: white;
            border: none;
            border-radius: 5px;
            margin-top: 10px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .buy-btn:hover {
            background: #ff6666;
        }

        /* 活动规则样式 */
        .rules {
            margin-top: 30px;
        }

        .rules ul {
            list-style: none;
            padding-left: 20px;
        }

        .rules li {
            margin-bottom: 10px;
            color: #666;
            position: relative;
        }

        .rules li:before {
            content: "•";
            color: #ff3c3c;
            font-weight: bold;
            position: absolute;
            left: -15px;
        }

        /* 优惠券样式 */
        .coupon-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .coupon-card {
            background: linear-gradient(45deg, #ff3c3c, #ff6666);
            color: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
        }

        .coupon-amount {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .coupon-condition {
            font-size: 14px;
            margin-bottom: 15px;
        }

        .get-coupon-btn {
            background: white;
            color: #ff3c3c;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .get-coupon-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .get-coupon-btn:disabled {
            background: #ccc;
            color: #666;
            cursor: not-allowed;
            transform: none;
        }

        .product-features {
            margin: 10px 0;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .product-features span {
            background: #fff5f5;
            color: #ff3c3c;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
        }

        .product-tag {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #ff3c3c;
            color: white;
            padding: 4px 12px;
            border-radius: 15px;
            font-weight: bold;
            font-size: 12px;
            box-shadow: 0 2px 4px rgba(255,60,60,0.2);
        }

        .section {
            margin-bottom: 40px;
        }

        .section-title {
            position: relative;
            margin-bottom: 30px;
            padding-left: 15px;
        }

        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 20px;
            background: #ff3c3c;
            border-radius: 2px;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="main-nav">
        <div class="container">
            <div class="nav-content">
                <a href="淘乐乐商城.html" class="logo">淘乐乐</a>
                <div class="user-info">
                    <span style="color: white;">欢迎参加双十二活动</span>
                </div>
            </div>
        </div>
    </nav>

    <!-- 主banner -->
    <div class="main-banner">
        <div class="container">
            <div class="banner-content">
                <h1>双十二狂欢节</h1>
                <p>全场低至1折起 | 限时抢购 | 折上再减</p>
                <p>2024年12月12日 00:00 准时开始</p>
                <div class="countdown">
                    <div class="countdown-item">
                        <div class="countdown-number" id="days">00</div>
                        <div class="countdown-label">天</div>
                    </div>
                    <div class="countdown-item">
                        <div class="countdown-number" id="hours">00</div>
                        <div class="countdown-label">时</div>
                    </div>
                    <div class="countdown-item">
                        <div class="countdown-number" id="minutes">00</div>
                        <div class="countdown-label">分</div>
                    </div>
                    <div class="countdown-item">
                        <div class="countdown-number" id="seconds">00</div>
                        <div class="countdown-label">秒</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 活动内容 -->
    <div class="container">
        <!-- 秒杀专区 -->
        <div class="section">
            <h2 class="section-title">限时秒杀</h2>
            <div class="product-grid">
                <div class="product-card">
                    <div class="product-image">
                        <img src="images/5.jpg" alt="iPhone 14 Pro Max">
                        <span class="discount-tag">5折</span>
                    </div>
                    <div class="product-info">
                        <h3 class="product-title">iPhone 14 Pro Max</h3>
                        <div class="product-price">
                            <span class="current-price">¥4999</span>
                            <span class="original-price">¥9999</span>
                        </div>
                        <button class="buy-btn" onclick="location.href='付款界面.html'">立即抢购</button>
                    </div>
                </div>

                <div class="product-card">
                    <div class="product-image">
                        <img src="images/6.jpg" alt="MacBook Pro">
                        <span class="discount-tag">7折</span>
                    </div>
                    <div class="product-info">
                        <h3 class="product-title">MacBook Pro</h3>
                        <div class="product-price">
                            <span class="current-price">¥9799</span>
                            <span class="original-price">¥13999</span>
                        </div>
                        <button class="buy-btn" onclick="location.href='付款界面.html'">立即抢购</button>
                    </div>
                </div>

                <div class="product-card">
                    <div class="product-image">
                        <img src="images/7.jpg" alt="AirPods Pro">
                        <span class="discount-tag">6折</span>
                    </div>
                    <div class="product-info">
                        <h3 class="product-title">AirPods Pro</h3>
                        <div class="product-price">
                            <span class="current-price">¥1319</span>
                            <span class="original-price">¥2199</span>
                        </div>
                        <button class="buy-btn" onclick="location.href='付款界面.html'">立即抢购</button>
                    </div>
                </div>

<div class="product-card">
                    <div class="product-image">
                        <img src="images/8.jpg" alt="iPad Air">
                        <span class="discount-tag">8折</span>
                    </div>
                    <div class="product-info">
                        <h3 class="product-title">iPad Air</h3>
                        <div class="product-price">
                            <span class="current-price">¥4399</span>
                            <span class="original-price">¥5499</span>
                        </div>
    <button class="buy-btn" onclick="location.href='付款界面.html'">立即抢购</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 新品首发区 -->
        <div class="section">
            <h2 class="section-title">新品首发</h2>
            <div class="product-grid">
                <div class="product-card">
                    <div class="product-image">
                        <img src="images/5.jpg" alt="iPhone 14 Pro Max">
                        <span class="product-tag">新品</span>
                    </div>
                    <div class="product-info">
                        <h3 class="product-title">iPhone 14 Pro Max</h3>
                        <div class="product-price">
                            <span class="current-price">¥8999</span>
                            <span class="original-price">¥9999</span>
                        </div>
                        <div class="product-features">
                            <span>赠送无线充电器</span>
                            <span>赠送手机壳</span>
                        </div>
                        <button class="buy-btn" onclick="location.href='付款界面.html'">立即购买</button>
                    </div>
                </div>

                <div class="product-card">
                    <div class="product-image">
                        <img src="images/6.jpg" alt="MacBook Pro">
                        <span class="product-tag">新品</span>
                    </div>
                    <div class="product-info">
                        <h3 class="product-title">MacBook Pro</h3>
                        <div class="product-price">
                            <span class="current-price">¥12999</span>
                            <span class="original-price">¥13999</span>
                        </div>
                        <div class="product-features">
                            <span>赠送电脑包</span>
                            <span>赠送贴膜</span>
                        </div>
                        <button class="buy-btn" onclick="location.href='付款界面.html'">立即购买</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 热卖推荐区 -->
        <div class="section">
            <h2 class="section-title">热卖推荐</h2>
            <div class="product-grid">
                <div class="product-card">
                    <div class="product-image">
                        <img src="images/7.jpg" alt="AirPods Pro">
                        <span class="product-tag">热销</span>
                    </div>
                    <div class="product-info">
                        <h3 class="product-title">AirPods Pro</h3>
                        <div class="product-price">
                            <span class="current-price">¥1799</span>
                            <span class="original-price">¥1999</span>
                        </div>
                        <div class="product-features">
                            <span>赠送保护套</span>
                            <span>赠送挂绳</span>
                        </div>
                        <button class="buy-btn" onclick="location.href='付款界面.html'">立即购买</button>
                    </div>
                </div>

                <div class="product-card">
                    <div class="product-image">
                        <img src="images/8.jpg" alt="iPad Air">
                        <span class="product-tag">热销</span>
                    </div>
                    <div class="product-info">
                        <h3 class="product-title">iPad Air</h3>
                        <div class="product-price">
                            <span class="current-price">¥4599</span>
                            <span class="original-price">¥4999</span>
                        </div>
                        <div class="product-features">
                            <span>赠送保护壳</span>
                            <span>赠送触控笔</span>
                        </div>
                        <button class="buy-btn" onclick="location.href='付款界面.html'">立即购买</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 优惠券区域 -->
        <div class="section">
            <h2 class="section-title">优惠券</h2>
            <div class="coupon-grid">
                <div class="coupon-card">
                    <div class="coupon-amount">¥50</div>
                    <div class="coupon-condition">满500可用</div>
                    <button class="get-coupon-btn">立即领取</button>
                </div>
                <div class="coupon-card">
                    <div class="coupon-amount">¥100</div>
                    <div class="coupon-condition">满1000可用</div>
                    <button class="get-coupon-btn">立即领取</button>
                </div>
                <div class="coupon-card">
                    <div class="coupon-amount">¥200</div>
                    <div class="coupon-condition">满2000可用</div>
                    <button class="get-coupon-btn">立即领取</button>
                </div>
            </div>
        </div>

        <!-- 活动规则 -->
        <div class="section rules">
            <h3>活动规则</h3>
            <ul>
                <li>活动时间：2023年12月12日 00:00-23:59</li>
                <li>所有商品限量发售，先到先得</li>
                <li>每个用户限购1件，不可重复购买</li>
                <li>优惠券与其他优惠活动可叠加使用</li>
                <li>活动最终解释权归淘乐乐所有</li>
            </ul>
        </div>
</div>

<script>
        // 倒计时功能
        function updateCountdown() {
            const targetDate = new Date('2024-12-19T00:00:00+08:00').getTime();
            const now = new Date().getTime();
            const timeLeft = targetDate - now;

            if (timeLeft <= 0) {
                document.getElementById('days').textContent = '00';
                document.getElementById('hours').textContent = '00';
                document.getElementById('minutes').textContent = '00';
                document.getElementById('seconds').textContent = '00';
                return;
            }

            const days = Math.floor(timeLeft / (1000 * 60 * 60 * 24));
            const hours = Math.floor((timeLeft % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
            const minutes = Math.floor((timeLeft % (1000 * 60 * 60)) / (1000 * 60));
            const seconds = Math.floor((timeLeft % (1000 * 60)) / 1000);

            document.getElementById('days').textContent = String(days).padStart(2, '0');
            document.getElementById('hours').textContent = String(hours).padStart(2, '0');
            document.getElementById('minutes').textContent = String(minutes).padStart(2, '0');
            document.getElementById('seconds').textContent = String(seconds).padStart(2, '0');
        }

        // 优惠券领取功能
    document.querySelectorAll('.get-coupon-btn').forEach(btn => {
        btn.addEventListener('click', () => {
            alert('领取成功！');
            btn.textContent = '已领取';
            btn.disabled = true;
        });
    });

        // 更新倒计时
        setInterval(updateCountdown, 1000);
        updateCountdown();
</script>
</body>
</html>